<%@ page import="java.io.File" %>
<%@ page import="java.util.ArrayList" %><%--
  Created by IntelliJ IDEA.
  User: Fan
  Date: 2016/9/13
  Time: 11:29
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
    <%
       String path = "d:\\纸牌屋第一季\\";
        File file=new File(path);
        File[] files=file.listFiles();
        ArrayList<String> list = new ArrayList<>();
        for(File f :files)
        {
        //list.add(f.getName());
    %>

    <video id="vdio1" controls="controls" align="center"  width="800" height="480">
        <source src="<%=f.getName() %>">
        Your browse does not suppoort HTML5 video
    </video>
      <%
        }
      %>
        <%--for (int i=0;i<list.size();i++) {--%>
            <%----%>
    <%--}--%>
    <%--%>--%>

<div id="palyVideo">
    <%--<video src="<%path+ %>"></video>--%>
</div>

</body>
</html>
